package com.gxg.service.Impl;

import com.gxg.dao.UserMapper;
import com.gxg.pojo.User;
import com.gxg.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by guxiaoguang on 2018/4/25.
 */
@Transactional
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUserByName(String name) {
        User user = userMapper.selectByPrimaryKey(name);
        return user;
    }
}
